//
//  WaterFlowLayout.h
//  HYHOME
//
//  Created by Mac on 16/1/27.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>



@protocol WaterFlowDelegate <NSObject>

// 获取item高度
- (CGFloat)heightForItemIndexPath:(NSIndexPath *)indexPath;

@end


@interface WaterFlowLayout : UICollectionViewLayout
// item大小
@property (nonatomic,assign) CGSize itemSize;

@property (nonatomic,assign) CGFloat insertItemSpacing;


//代理
@property (nonatomic,assign)id<WaterFlowDelegate>delegate;
@end
